package com.service;

import com.entity.*;

import java.math.BigDecimal;
import java.util.List;

/**
 * Created by Administrator on 2018/10/20.
 */
public interface SelectFormService {
    //查询课程表
    List<Subject> subjectList();

    //查询地区表
    List<Location> locationList(String cityName);

    //查询地区表 城市ID做条件
    List<Location> locationWhereCityId(Integer cityId);

    //查询城市表
    List<City> cityList();

    //查询学校表
    List<School> schoolList(String cityName);

    //查询专业表
    List<Major> majorList();

    //查询籍贯表
    List<BirthPlace> birthPlaceList();

    //上传认证
    int TeacherIdentify(String userId, String filePath, String position);

    //修改认证
    String findTeacherIdentify(String userId);

    //查是否预约申请
    int selectRecord(Integer stdUserId, Integer stdId, Integer teaUserId, Integer teaId);

    int selectRecord2(Integer stdUserId, Integer stdId, Integer teaUserId, Integer teaId);

    //预约或者申请增加
    int insertRecord(String stdUserId, String TeaUserId, String UUID, String stdId, String teaId, String recordType);

    //取消订单
    int updateRecord(Integer recordId);

    //查询关联的教师表
    List<Teacher> findRecordTeacher(String userId, int limit);

    //查询关联的学生表
    List<AssociationInfo> findRecordStudent(String userId, int limit, String tp);

    //
    List<AssociationInfo> myAppointment(Integer userId, Integer type, Integer limit);

    List<AssociationInfo> findMyPublishAppointment(Integer userId, Integer id, Integer limit);

    //上传头像
    int upPhoto(String userId, String url);

    //查openID
    String findOpenId(String userId);

    //查询formId
    List<formIdInfo> selectOhterFormId(String userId);

    //新增formId
    int insertFormId(String userId, String formId);

    //修改formId
    int updateFormId(Integer id);

    //插入openid
    int insertOpenId(String userId, String openid);

    String findRecordStatus(String RecordId);

    int saveMap(Integer recordId, String thisLocation, String aimLocation, String mapPath);

    //查询余额
    BigDecimal findMoney(String userId);

    int addMoney(BigDecimal bigDecimal, String userId);

    int savePath(Integer recordId, String thisLocation, String thisLat, String thisLog, String aimLocation, String aimLat, String aimLog);

}
